package com.zhny.sensor.service;

import com.zhny.sensor.dao.SlaughterHouseRepairRepositiry;
import com.zhny.sensor.entity.SlaughterHouseRepair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SlaughterHouseRepairService {
    @Autowired
    private SlaughterHouseRepairRepositiry slaughterHouseRepairRepositiry;

    public List<SlaughterHouseRepair> findByHouseId(String id){
        return slaughterHouseRepairRepositiry.findByHouseId(id);
    }
}
